package day0728;

import java.util.Arrays;

public class Test9 {
    public static void main(String[] args) {
        int[] a={8,  0,  1,  3,  6};
        shuffle(a);
        System.out.println(Arrays.toString(a));
    }

    public static void shuffle(int[]   a) {
        for(int j=4;j>=1;  j--){
            for ( int  i=0;   i<j;  i++){  // a[4]   a[i]
                int t= a[j];
                a[j]=a[i];
                a[i]=t;
            }
        }
    }


}
